﻿using System;
using System.Linq;
using System.Web;
using Widgetsphere.Autos.Websitev2.Objects;
using Widgetsphere.Autos.API.FacetedNavigation;

namespace Widgetsphere.Autos.Websitev2
{
    public partial class find_cars : BasePage
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            this.Populate();
        }

        private void Populate()
        {
            if (StateDimensionControl1 == null) return;
            StateDimensionControl1.Populate(RepositoryHelper.MasterResults.AllDimensions.StateDimension, false);
            YearDimensionControl1.Populate(RepositoryHelper.MasterResults.AllDimensions.YearDimension, false);
            MetroDimensionControl1.Populate(RepositoryHelper.MasterResults.AllDimensions.MetroDimension, false);
        }

    }
}